package com.aspose.cells;

class zbuf extends zbz {
   zbuf() {
      this.c(425);
   }

   void a(znd var1) {
      byte[] var2 = zco.a(var1.j);
      this.a((short)(53 + var2.length));
      this.c = new byte[this.d()];
      byte var3 = 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.a), 0, this.c, var3, 2);
      int var5 = var3 + 4;
      System.arraycopy(var1.b.a(), 0, this.c, var5, 16);
      var5 += 16;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.c), 0, this.c, var5, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.d), 0, this.c, var5 + 4, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.e), 0, this.c, var5 + 8, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.f), 0, this.c, var5 + 12, 4);
      var5 += 16;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h), 0, this.c, var5, 2);
      var5 += 2;
      int var4 = 0;
      if (var1.a()) {
         var4 |= 1;
      }

      if (var1.b()) {
         var4 |= 2;
      }

      switch(var1.c()) {
      case 0:
         var4 |= 8;
         break;
      case 1:
         var4 |= 4;
      case 2:
      }

      if (var1.p()) {
         var4 |= 16;
      }

      if (var1.d()) {
         var4 |= 32;
      }

      if (var1.e()) {
         var4 |= 64;
      }

      if (var1.o()) {
         var4 |= 128;
      }

      switch(var1.f()) {
      case 0:
      default:
         break;
      case 1:
         var4 |= 512;
         break;
      case 2:
         var4 |= 256;
      }

      if (var1.g()) {
         var4 |= 1024;
      }

      if (var1.h()) {
         var4 |= 2048;
      }

      if (var1.i()) {
         var4 |= 4096;
      }

      if (var1.j()) {
         var4 |= 8192;
      }

      if (var1.k()) {
         var4 |= 16384;
      }

      if (var1.l()) {
         var4 |= 32768;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, var5, 2);
      var5 += 4;
      var4 = 0;
      if (var1.m()) {
         var4 |= 1;
      }

      if (var1.n()) {
         var4 |= 2;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, var5, 2);
      var5 += 2;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.i), 0, this.c, var5, 2);
      var5 += 2;
      zco.a(this.c, var5, var2, var1.j);
   }
}
